<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%-- 
    JSP Name : counsel_cmList.jsp
    Description : 카마스터 목록.
    author SJYoon
    since 2012. 6. 28.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 28.     SJYoon     최초 생성
--%>

                                   
            <h2 class="subsection02"><img src="/kr/images/title/h5_counsel_branch_inquiry02_01.gif" alt="검색 결과" /></h2>
            <div class="boardlist-wrap">
                <table class="salesman-search" summary="이미지, 내용">
                <caption>검색 결과 리스트</caption>
                <colgroup>
                    <col width="20%" />
                    <col width="80%" />
                </colgroup>
                <thead>
                <tr>
                    <th scope="col">이미지</th>
                    <th scope="col">내용</th>
                </tr>
                </thead>
                <tbody>
                <c:choose>
                    <c:when test="${paginationInfo.totalRecordCount > 0}">
                <c:set var="rowNum" value="${ paginationInfo.totalRecordCount - (paginationInfo.currentPageNo-1)* paginationInfo.pageSize}" />
                <c:forEach var="result" items="${resultList }" varStatus="status">
                <tr>
                    <td class="center">
                        <div class="salesman-thumb">
                
<%--                     <img src='/file/imageView.do?nrFileNm=cmst/${ result.cmPhtgNm }' width='114px' height='123px' alt=''/> --%>
                     <img src="http://tops.hmc.co.kr/upload/photo/${result.cmEeno}.jpg" style="width:114px; height:123px;" />
                
<%--                             <c:if test="${fn:length(result.cmPhtgNm) < 2 }">&nbsp;</c:if> --%>
<%--                             <c:if test="${fn:length(result.cmPhtgNm) > 2 }"><img src="/kr/file/imagePathView.do?nrFilNm=cmst/<c:out value="${result.cmPhtgNm}"/>" alt=""  /></c:if> --%>
                        </div>
                    </td>
                    <td class="last">
                        <div class="salesman-information">
                            <ul>
                                <li>
                                    <em class="d-tit"><img src="/kr/images/layerpopup/txt_branch01.gif" alt="성명" /></em>
                                    <p class="d-txt">${result.cmNm }</p>
                                </li>
                                <li>
                                    <em class="d-tit"><img src="/kr/images/layerpopup/txt_branch02.gif" alt="소속" /></em>
                                    <p class="d-txt">${result.brNm }</p>
                                </li>
                                <li>
                                    <em class="d-tit"><img src="/kr/images/layerpopup/txt_branch03.gif" alt="휴대폰" /></em>
                                    <p class="d-txt">${result.cmCcpc }</p>
                                </li>
                                <li>
                                    <em class="d-tit"><img src="/kr/images/layerpopup/txt_branch04.gif" alt="이메일" /></em>
                                    <p class="d-txt">${result.cmEml }</p>
                                </li>
                                <li>
                                    <em class="d-tit"><img src="/kr/images/layerpopup/txt_branch05.gif" alt="인사말" /></em>
                                    <p class="d-txt">${result.cmGret }</p>
                                </li>
                            </ul>
                                <img src="/kr/images/layerpopup/btn_select.gif" alt="선택" class="application" onClick="selectCM('${result.cmEeno }','${result.cmNm }');"/>
                        </div>
                    </td>
                </tr>
                </c:forEach>
                </c:when>
                <c:otherwise>
                <tr>
                    <td colspan="2" class="center last">성명 또는 지점/대리점명을 입력하시고 조회 해주세요!</td>
                </tr>
                </c:otherwise>
                </c:choose>
                </tbody>
                </table>
            </div>
            <c:if test="${paginationInfo.totalRecordCount > 0 }">
                <div class="paging">
                    <able:pagination paginationInfo="${paginationInfo}" type="image" jsFunction="fnLinkPage" />
                </div>
            </c:if>         
            